﻿using System;

using System.Collections.Generic;
using System.Text;

namespace RSSRadio.Model
{
    public interface IPodcastUpdateListener
    {
        void PodcastAdded(PodcastInfo info);
        void PodcastRemoved(PodcastInfo info);
    }

    public class PodcastUpdateListenerReplicator : BaseListenerReplicator<IPodcastUpdateListener>,IPodcastUpdateListener 
    {
        #region IPodcastUpdateListener Members

        public void PodcastAdded(PodcastInfo info)
        {
            PodcastAddedImpl(info);
            foreach (IPodcastUpdateListener listener in Listeners)
            {
                listener.PodcastAdded(info);
            }

        }
        public void PodcastRemoved(PodcastInfo info)
        {
            PodcastRemovedImpl(info);
            foreach (IPodcastUpdateListener listener in Listeners)
            {
                listener.PodcastRemoved(info);
            }
        }

        #endregion
        public void PodcastAddedImpl(PodcastInfo info)
        {
        }
        public void PodcastRemovedImpl(PodcastInfo info)
        {
        }

    }
}